package com.iwdnb.gkgz.controller;

import java.util.List;
import java.util.concurrent.Executor;

import com.google.common.collect.Lists;
import com.iwdnb.bmnf.common.model.result.Result;
import com.iwdnb.gkgz.application.model.request.StockSignalRequest;
import com.iwdnb.gkgz.application.service.StockSignalService;
import com.iwdnb.gkgz.infrastructure.dao.client.MairuiClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 股票信号数据处理
 **/
@RestController
@RequestMapping("/api/stock/signal")
@Slf4j
public class StockSignalController {

    @Autowired
    private StockSignalService stockSignalService;

    /**
     * 初始化股票涨停板信号数据
     *
     * @param request
     * @return
     */
    @RequestMapping("/initStockSignals")
    public Result<String> initStockSignals(@RequestBody StockSignalRequest request) {
        stockSignalService.initStockSignals(request);
        return Result.getSuccessResult(null);
    }

}
